package com.boboPlanet.feign;

import com.boboPlanet.comm.result.ResponseResult;
import com.boboPlanet.fallback.UserAuthFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: TODO 网关中无法直接feign调用，需要异步,弃用
 * @Author: mis_wu
 * @Date: 2023/5/10
 **/
@FeignClient(value = "${planet.userServer}",path = "/boboPlanetUserMiddleDev/sysAuth",fallbackFactory = UserAuthFallbackImpl.class)
@Deprecated
public interface UserAuthApi {

    @GetMapping("/getJwtClaimBySign")
    Boolean getJwtClaimBySign(@RequestParam String sign);

    @GetMapping("/judgeUserIsExpire")
    Boolean judgeUserIsExpire(@RequestParam String sign);

}
